#pragma once

#include <iostream>
#include <string>
#include <functional>

class Task
{
private:
    int _a;
    int _b;
    int _reselt;

public:

  Task(int a,int b)
  :_a(a),_b(b)
  {
      _reselt=0;
  }

     void Excute()
     {
         _reselt=_a+_b;
     }

     std::string ResultToString()
     {
        return std::to_string(_a)+"+"+std::to_string(_b)+"="+std::to_string(_reselt);
     }  

     std::string DebugToString()
     {
        return std::to_string(_a)+"+"+std::to_string(_b)+"=?";
     }

     void operator()()
     {
        Excute();
     }  

};
